import Loadable from 'react-loadable';
import DelayLoading from '@/components/delayLoading';

// const Test = Loadable({loader: () => import('../pages/logistics'), loading: DelayLoading, delay: 3000});
// const Logistics = Loadable({ loader: () => import('../pages/logistics'), loading: DelayLoading, delay: 3000 });
function resolve(url) {
  return Loadable({ loader: () => import(`../pages/${url}`), loading: DelayLoading, delay: 3000 });
}

export default [
  {
    path: '/',
    name: '人员',
    component: resolve('logistics')
  }, {
    path: '/toSend',
    name: '寄件',
    component: resolve('logistics/toSend'),
    childRoutes: []
  }, {
    path: '/toSendStep1',
    name: '寄件1',
    component: resolve('logistics/toSendStep1'),
    childRoutes: []
  }
];
